package com.colis.quartz.module.sms;

import com.colis.quartz.common.base.BaseBean;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * <p> 描述：定时任务日志 </p>
 *
 * @author wlp
 * @version 1.0.0
 * @date 2022/1/13 9:23
 */
@Data
@SuperBuilder
@NoArgsConstructor
@Entity
@Table(name = "sms_quartz_task_log")
@ApiModel("定时任务日志")
public class QuartzTaskLog extends BaseBean {

    /**
     * 任务ID
     */
    @Column(name = "quartz_id")
    private Long quartzId;
    /**
     * 定时任务名称
     */
    @Column(name = "quartz_name")
    private String quartzName;
    /**
     * 定制任务执行类
     */
    @Column(name = "target_bean")
    private String targetBean;
    /**
     * 定时任务执行方法
     */
    @Column(name = "target_method")
    private String targetMethod;
    /**
     * 执行参数
     */
    @Column(name = "params")
    private String params;
    /**
     * 任务状态
     */
    @Column(name = "quartz_status")
    private Integer quartzStatus;
    /**
     * 异常消息
     */
    @Column(name = "error_info")
    private String errorInfo;
    /**
     * 执行时间
     */
    @Column(name = "execution_time")
    private Long executionTime;
    /**
     * 备注
     */
    @Column(name = "remarks")
    protected String remarks = "备注";
}
